home *** CD-ROM | disk | FTP | other *** search
- BRUCE303.DOC
- 03/22/93
-
- This documentation provides some overview information on a number of utilities
- that have been posted by Wayne Software. All programs described herein were
- written by Bruce Guthrie of Wayne Software. Some were written for and are
- distributed by the U.S. Department of Commerce. All are free for use provided
- relevant documentation is kept with the programs, no changes are made to the
- programs or documentation, and they are not bundled with commercial programs or
- charged for separately. READ (but not READMAKE and READINIT) and CONVERT are
- excluded from the commercial packaging restriction. People who need to bundle
- any of the other routines in for-sale packages must pay a $50 registration fee
- to "Wayne Software" at the following address. Comments and suggestions can also
- be sent to:
-
- Bruce Guthrie
- Wayne Software
- 113 Sheffield St.
- Silver Spring, MD 20910
-
- fax: (301) 588-8986
-
- The utilities are uploaded with a ZIP name that includes the year and month of
- the release. These names are:
-
- ADDymm.ZIP ADD program
- AVymm.ZIP AV program
- BFINDymm.ZIP BFIND program
- CHANGymm.ZIP CHANGE program
- CONCTymm.ZIP CONCAT program
- CONVRymm.ZIP CONVERT program
- DIRCMymm.ZIP DIRCOMP program
- DIRTOymm.ZIP DIRTOTAL program
- FILLymm.ZIP FILL program
- FILUPymm.ZIP FILUPDAT program
- FIXCHymm.ZIP FIXCHARS program
- MULCOymm.ZIP MULTICOL program
- READymm.ZIP READ program (with READINIT and READMAKE)
- TAKE1ymm.ZIP TAKE1ST program
-
- This collection of utilities were compiled using either Microsoft's QuickBASIC
- 4.5 or Microsoft's VisualBASIC for DOS 1.0 compilers. In each case, Thomas G.
- Hanlin III's excellent PBClone routines provided additional functionality. Each
- of the utilities are separately described in a like-named *.DOC file. This
- documentation (BRUCEymm.DOC--the file release date is indicated by the "ymm"
- parameter) serves to summarize what the various utilities consist of.
-
- Several of the routines have defaults that can be changed by the program
- CONFIGWS.EXE which is included in the appropriate ZIP's.
-
- Wayne Software also writes programs, batch files, and sets up menu systems for
- people on a for-fee basis. If you desire this service, contact Wayne Software
- at the address specified above.
-
-
- --------------------------------------------------------------------------------
-
- A summary of each routine follows. See the associated *.DOC files for fuller
- explanations:
-
- ADD.EXE: Adds up a column of numbers in a text file. Also presents minimum and
- maximum information. Syntax:
-
- ADD infile [ /COLUMNS { col1-col2 | col1 colct } ]
- [ /LINES { line1-line2 | line1 linect } ... ]
- [ /V | /-V ] [ /I | /-I ] [ /IN search ]
- [ /C | /-C ] [ /Q ] [ /? ]
-
- AV.EXE: Archive directory viewer. Presents list of files in archive (ZIP, ARC,
- etc) and lets you sort as desired. Syntax:
-
- AV filespec [ /-P | /P ] [ /Ox | /O-x ] [ /? ]
-
- BFIND.EXE: Allows Boolean-type FIND requests. For example, find any line with
- one string AND another one, or any line with one string OR another. The syntax
- shown below is limited since "search" allows a lot of choices.
-
- BFIND [ /V | /-V ] [ /C | /-C ] [ /N | /-N ] [ /I | /-I ] [ /P | /-P ]
- [ /-HEADER | /HEADER ] { search } infile [ /? ] [ >filename ]
-
- CHANGE.EXE: Processes change commands in files. Files can be of any size and
- type (e.g. binary or text) and are processed quickly. Up to twenty-five change
- commands can be processed in a single pass. Also provides ability to remove
- trailing spaces from text files. Syntax:
-
- CHANGE filename [ commandfile | /FROM string /TO string [ /IN search ] ]
- [ /LINES { line1-line2 | line1 linect } ... ] [ /V | /-V ] [ /I | /-I ]
- [ /Noutfile [ /OVERWRITE | /-OVERWRITE | /OVERASK ] ]
- [ /Fflag_file ] [ /Ttemp_file ] [ /TRIM | /-TRIM ]
- [ /BINARY | /TEXT ] [ /VERIFY | /-VERIFY ] [ /Q ] [ /? ]
-
- CONCAT.EXE: Concatenates a series of files together. Can use wildcards or an
- input file. Syntax:
-
- CONCAT [ filespec | @filespec | [drive:]filespec+ ] outfile
- [ /OVERWRITE | /APPEND | /-OVERWRITE | /OVERASK ]
- [ BINARY | /TEXT [ /CRLF ] ] [ /LRECL=nnn [ /BLKSIZE=nnnn ] ]
- [ /NAMED ] [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
-
- CONFIGWS.EXE: Lets you change some of the defaults for some of the programs.
- Syntax:
-
- CONFIGWS [ routine ] [ /MONO | /-MONO | /COLOR | /-COLOR ] [ /? ]
-
- CONVERT.EXE: Converts between data formats: FROM dBase, ASCII-delimited
- (commas between fields and quotes around strings), and fixed field TO Lotus WKS,
- ASCII-delimited, dBase, and fixed field. Syntax:
-
- CONVERT infile [ outfile [ deffile ] ]
- [ /OVERWRITE | /-OVERWRITE | /APPEND | /OVERASK ]
- [ /DEF=deffile ] [ /FROM { FIXED | ASCII | ASCII=char | DBF } ]
- [ /FIXED | /ASCII | /ASCII=char | /DBF ] [ /USEDEF | /NODEF ]
- [ /TO { FIXED | ASCII | ASCII=char | WKS | DBF } ] [ /HEADER | /-HEADER ]
- [ /SKIP | /MISSING | /ABORT ] [ /SAS ] [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
-
- DIRCOMP.EXE: Updates files in one subdirectory based on files in another
- subdirectory. Similar to DOS' REPLACE commands in some ways but also removes
- unused files and can report what it's doing. Syntax:
-
- DIRCOMP directory1 directory2 [ /ALL ] [ /UPDATE ] [ /KILL ]
- [ /NET ] [ /Ffilename | /FNUL: ]
- [ /OVERWRITE | /APPEND | /-OVERWRITE | /OVERASK ] [ /Q ] [ /? ]
-
- DIRTOTAL.EXE: Prepares report showing files in subdirectory or drive. Allows
- some restriction requests (show only files with date greater than a certain
- value). Similar to Norton's FF and Ray Van Tassle's WIZ command (which is a
- great program but it doesn't work on network or CD-ROM discs) in some ways but
- presents a more formal report. Syntax:
-
- DIRTOTAL [ [ drive: ] ... [drive:][filespec] |
- [ drive: ] ... [drive:]\path[\filespec] ]
- [ /NL ] [ /S { GT | GE | LT | LE | EQ | NE } value ]
- [ /D { GT | GE | LT | LE | EQ | NE } mm/dd/yy ]
- [ /ATTR=attr ] [ /Ffilename ] [ /SPLIT ] [ /SUB | /-SUB ]
- [ /Z ] [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
-
- FILL.EXE: Program designed to fill up floppies with the maximum number of files
- that will fit into them. "FILL *.BAS" will move *.BAS files onto a floppy,
- taking the biggest files first. When it can't fit a file, it will skip it and
- move the next one. Syntax:
-
- FILL [ source-filespec ] [ dest-drive: | dest-drive:\path\ ] [ /MOVE | /COPY ]
- [ /OVERWRITE | /-OVERWRITE | /OVERSKIP | /OVERASK ] [ /PROMPT | /-PROMPT ]
- [ /Ox | /O-x ] [ /Xfilespec ]... [ /WIPE | /-WIPE ] [ /MULTI | /SINGLE ]
- [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
-
- FILUPDAT.EXE: Program which compares a selected list of files in a source path
- against those in another path and copies those that have been updated. Similar
- to DOS' REPLACE command but works from a stored list of files and can handle any
- number of directories. Syntax:
-
- FILUPDAT control_fil
- [ /Flist_file [ /OVERWRITE | /APPEND | /-OVERWRITE | /OVERASK ] ]
- [ /FULL ] [ /ALL ] [ /Q ] [ /? ]
-
- FIXCHARS.EXE: Program which removes non-standard print characters from a text
- file. Translates graphics characters into their ASCII equivalents. Also
- expands tabs and removes backspaces. Is primarily intended for people who have
- problems printing a file. Syntax:
-
- FIXCHARS infile { outfile [ /OVERWRITE | /-OVERWRITE | /OVERASK ] |
- /REPLACE } [ /BINARY | /TEXT ] [ /Ffilename ] [ /-EJECT ] [ /Q ] [ /? ]
-
- MULTICOL.EXE: Program creates multiple column listings from straight ASCII
- text, ASCII-delimited text, or dBase files. Also does subtotalling. Syntax:
-
- MULTICOL infile outfile [ /OVERWRITE | /-OVERWRITE | /OVERASK ]
- [ /DELIM="string" ]
- [ /LINES=n ] [ /WIDTH=n ] [ /EJECT | /-EJECT ]
- [ /COLUMNS=n ] [ /WRAP | /-WRAP [ /INDENT=n ] | /REFLOW ]
- [ /Ccontrol_file ] [ /SETUP="string" ] [ /RESET="string" ]
- [ /{ TITLE | HEADER | FOOTER }[ R | C | L ][ 1 to 5]="text" ]
- [ /{ TITLE | HEADER | FOOTER }{ T | B }="string" ]
- [ /FROM ASCII | /FROM ASCII=char | /FROM DBF ] [ /DEF=deffile ]
- [ /SKIP | /MISSING | /ABORT ] [ /GAP=n ] [ /USEDEF ] [ /TALLY ]
- [ /SUM={ col_spec | var_spec } ] [ /BREAK={ col_spec | var_spec } ]
- [ /PRINT={ col_spec | var_spec } ] [ /? ]
-
- READ.EXE: Simplified version of a file browser. Only works with files of
- 16,000 lines or less (maybe 800,000 bytes). Other text viewers are out there.
- This one has some advantage because it's free. Syntax:
-
- READ [ filename ] [ /line ] [ /MONO | /-MONO | /COLOR | /-COLOR ]
- [ /Pport ] [ /-I ] [ /? ]
-
- READINIT.EXE: Creates and maintains the READ.INI file which may be used by
- READ.EXE and any self-viewable file created by READMAKE.EXE. Syntax:
-
- READINIT [ /MONO | /-MONO | /COLOR | /-COLOR ] [ /-I ] [ /? ]
-
- READMAKE.EXE: Program which takes an ASCII-text file and makes it
- self-viewable. Provides same capabilities as the READ program. Syntax:
-
- READMAKE infile [ outfile ] [ /OVERWRITE | /-OVERWRITE | /OVERASK ]
- [ /DATE=FILE | /DATE=TODAY ] [ /TITLE="text" ] [ /? ]
-
- TAKE1ST.EXE: Program that takes only the first occurrence of a record in a text
- file. Useful way to get rid of duplicates. Syntax:
-
- TAKE1ST infile outfile [ /COLUMNS { col1-col2 | col1 colct } ...]
- [ /LINES { line1-line2 | line1 linect } ... ]
- [ /OVERWRITE | /APPEND | /-OVERWRITE | /OVERASK ]
- [ /V | /-V ] [ /I | /-I ] [ /IN search ]
- [ /UNIQUE | /DUPLICATES ] [ /GROUP=n ] [ /Q ] [ /? ]
-
-
- -------------------------------------------------------------------------------
-
- Other utilities that I've written that I might clean up and release if requested
- include the following:
-
- COPSINCE.EXE: Copies files created since a given date to another subdirectory.
-
- DATES.EXE: Reminds you in advance of birthdays, special events, etc so you
- can get cards out in time or get out of time before hand.
-
- NETSORT.EXE: Rather slow directory sorting program (physically arranging the
- files in a particular order) which works on files on a network (at least on a
- Banyan network).
-
- SPLITREC.EXE: Splits up fixed length files without carriage return/line feeds
- into individual text records based on record lengths.
-
-
- I suspect there are better shareware/freeware versions of these out there. In
- any case, if you want a complete release of everything, send $10 to the address
- above and I'll send you everything.
-
- Another Wayne Software product, called The DEMO System, made its debut in
- January 1993. Unlike the other programs, this one is being released as
- shareware. The DEMO System is a unique system designed to create text-screen
- demos, tutorials, help screens, etc. Look for the file DEMOSymm.ZIP on boards
- around you.
-
-
- ================================Revision history================================
-
- Detailed revision history is only maintained for the last two releases. After
- that, you get the summaries only. No one reads this junk anyway, right?
- Programmer types like to put in it in just to justify what they've been doing
- over the last couple of years.
-
- Release 93/03:
-
- Added one routine this time--AV which is similar to Vern Buerg's FV program but
- is free, views archive directories in page mode (so you can flip up and down),
- and lets you change the file date to be the date of the most recent member.
- Added a new routine--READINIT--to the READymm.ZIP file. This one creates a
- READ.INI file for you, primarily for setting up printer attributes.
-
- CONCAT: Added /-OVERWRITE and /OVERASK options.
-
- CONVERT: Added /APPEND option which only works for ASCII-delimited or fixed-
- field output files.
-
- DIRCOMP: Recoding using VisualBASIC for DOS. Externally, nothing changed
- except for using VBDOS's ISAM program to avoid the need for an external sort
- program at all. This resulted in the dropping of the /SORT=pgm parameter.
-
- DIRTOTAL: Recoded using VisualBASIC for DOS. Externally, nothing changed
- except for using VBDOS's ISAM program to avoid the need for an external sort
- program at all. This resulted in the dropping of the /SORT=pgm, /DOS, and /-DOS
- parameters.
-
- MULTICOL: Fixed bug occuring when you had a numeric field that you skipped on
- output. Switched ASCII character representation to be /nnn to be more generic
- and to fit in with the changes in the READ program. "/27" should be recoded as
- "/027". Programmed it so imbedded page eject characters would work in any
- file that uses the /-WRAP option.
-
- READ: Switched to VBDOS for this one (for better or worse), added support for
- printers via the READ.INI file, and added a /-I switch to ignore same. Added
- secondary program READINIT.EXE which manages the READ.INI file.
-
- --------------------------------------------------------------------------------
- Release 93/02:
-
- In general, all routines have shifted from using Hanlin's PBClone 1.8 routines
- to using PBClone 2.1. Some routines should be a bit quicker because of this.
- In addition, I bought a fax machine and have put that phone number on this
- documentation. Finally, some of the options were rationalized; most routines
- now support /OVERWRITE, /-OVERWRITE, and /OVERASK. Much of the search
- functionality of the BFIND routine was extended to ADD, CHANGE, and TAKE1ST.
- Given the number of options supported by CHANGE, it's possible that new bugs
- have crept into the program. Please report them and back up files before using
- that command.
-
- ADD: Added /LINES selection option. Also added /V, /-V, /I, /-I and the search
- string capabilities of the BFIND routine. Changed /SKIP to be /C (similar to
- the BFIND and FIND parameters) and added /-C. Made several options
- CONFIGWS-able and added ADD to that routine.
-
- BFIND: Fixed a problem with the /V switch.
-
- CHANGE: Added /OVERWRITE, /-OVERWRITE, and /OVERASK options. Added /-TRIM,
- /-VERIFY, /V, /-V, /I, /-I, and /LINES. BFIND's search capabilities have been
- added to the "/IN search" parameter but only from the command line. /V, /-V,
- /I, and /-I are now settable by the CONFIGWS routine; CHANGE has been added to
- that program. Slashes were added in front of FROM, TO, and IN in order to make
- them consistent with the other routines although use without the slashes at
- least temporarily works. /CASE has been renamed /I to be consistent with the
- BFIND command (although /CASE at least temporarily still works).
-
- CONFIGWS: Was previously named BGCONFIG; renamed it as CONFIGWS. Recoded using
- the menu routines in PBClone. Added several settings for (and sometimes added
- in general) configuring ADD, CHANGE, DEMOMAKE (fromt The DEMO System), DIRTOTAL,
- FILL, and TAKE1ST. Added /COLOR and /-COLOR as synonyms for /-MONO and /MONO
- respectively.
-
- CHANGE: Fixed a problem with files that were in the root. You could get them
- before but you had to explicitly specify the subdirectory due to a bug. Also
- added some colors and changed subroutines to make the hexadecimal conversion
- chart a little more readable.
-
- CONVERT: Added /-OVERWRITE and /OVERASK options. Fixed a bug in writing out
- dBase input files with numeric data. Fixed a bug in reading dBase files with
- more than 32,000 records.
-
- DIRCOMP: Boy! Been awhile since I looked at this one! Some things didn't work
- at all. Fixed them up. Added support for PC Magazine's PCSORT program. Added
- /-OVERWRITE and /OVERASK options.
-
- DIRTOTAL: Added directory subtotals (adding in child subdirectories). Added
- /-SUB option. Added support for PC Magazine's PCSORT program. Made /SUB vs
- /-SUB CONFIGWS-able.
-
- FILL: Added /OVERASK and /OVERSKIP. Made the /OVERxxxx parms as well as the
- order parameter (/O[-]{N,S,D}) CONFIGWS-able. Added /COPY and /MOVE parameters
- as well as /MULTI and /SINGLE; all of these are CONFIGWS-able. Switched over to
- use Hanlin's BoxMenu subroutines for much of the prompting.
-
- FILUPDAT: Added /OVERASK and /-OVERWRITE options.
-
- FIXCHARS: Added /-EJECT, /-OVERWRITE, and /OVERASK options.
-
- MULTICOL: Added /-OVERWRITE and /OVERASK options.
-
- READ: Added /COLOR and /-COLOR as synonyms for /-MONO and /MONO respectively.
- Now have READ returning error level 2 (file not found) and error level 1 (bad
- parameter). Added Ctrl-P (printer page eject). Added /Pport option and added
- the setting of this to CONFIGWS.
-
- READMAKE: Added /-OVERWRITE and /OVERASK options.
-
- TAKE1ST: Added /-OVERWRITE and /OVERASK options. Added /LINES and /GROUP
- selection option. Also added /V, /-V, /I, /-I and the search string
- capabilities of the BFIND routine. Made several options CONFIGWS-able and added
- TAKE1ST to that routine.
-
- --------------------------------------------------------------------------------
- Release 93/01:
-
- First release posted on SIMTEL (Internet).
-
- New: The DEMO System (shareware and not part of normal package).
-
- --------------------------------------------------------------------------------
- Release 92/12:
-
- Major changes: MULTICOL adds ASCII-delimited and dBase support.
-
- --------------------------------------------------------------------------------
- Release 92/11:
-
- BRUCEymm.ZIP idea ends; utilities released separately now.
-
- New: MULTICOL and READMAKE.
-
- --------------------------------------------------------------------------------
- Release BRUCE210.ZIP:
-
- New: BFIND and CONFIGWS (called BGCONFIG then).
-
- --------------------------------------------------------------------------------
- Release BRUCE208.ZIP:
-
- New: FIXCHARS.
-
- --------------------------------------------------------------------------------
- Release BRUCE205.ZIP:
-
- DIRTOTAL supports MS-DOS 5.0 and can avoid external sorting program.
-
- --------------------------------------------------------------------------------
- Release BRUCE204.ZIP:
-
- Initial release. ADD, CHANGE, CONCAT, CONVERT, DIRCOMP, DIRTOTAL, FILL,
- FILUPDAT, READ, and TAKE1ST.
-